import Vue from 'vue'
import Router from 'vue-router'
import PingTest from '@/components/PingTest'
import LinkTest from '@/components/LinkTest'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      redirect: '/link'
    },
    {
      path: '/ping',
      name: 'ping-test',
      component: PingTest
    },
    {
      path: '/link',
      name: 'link-test',
      component: LinkTest
    },
    {
      path: '*',
      redirect: '/link'
    }
  ]
})